﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CalculatorLib;
using CalculatorLib.Model;

namespace Calculator
{
    public class Program
    {
        public static void Main(string[] args)
        {
            MainCalculator calculator = new MainCalculator();
            CalModel data1 = new CalModel();
            CalModel data2 = new CalModel(CalOperations.Div);

            data1.integerValue1 = 20;
            data1.integerValue2 = 0;
            data1.Operation = CalOperations.AddList;
            data1.listOfIntegerValue = new List<int>() { 1,2,3,4,5,6,7,8,9 };

            calculator.Data = data1;

            int result = calculator.Calculate();
        }
    }
}
